export default [
      {
        path: '/user',
        component: '../layouts/UserLayout',
        routes: [
          {
            name: 'login',
            path: '/user/login',
            component: './User/login',
          },
        ],
      },
      {
            path: '/',
            component: '../layouts/BasicLayout',
            routes: [
              {
                path: '/',
                redirect: '/welcome',
              }, {
                 path: '/welcome',
                 name: 'welcome',
                 icon: 'smile',
                 component: './Welcome',
               },
              {
                path: '/userList',
                name: '用户列表',
                icon: 'smile',
                component: './User/List',
                authority: ['account_management'],
              },
              {
                path: '/userRegister',
                icon: 'smile',
                component: './User/Register',
              },
              {
                path: '/minerList',
                name: '矿工列表',
                icon: 'smile',
                component: './Miner/List',
                authority: ['account_management'],
              },
              {
                path: '/minersMonitor',
                name: '矿工监控',
                icon: 'smile',
                component: './Miner/List2',
                authority: ['account_management'],
              },
              {
                path: '/minerAdd',
                icon: 'smile',
                component: './Miner/Add',
                authority: ['account_management'],
              },
              {
                name: 'minerInfo',
                icon: 'smile',
                path: '/minerInfo/:id',
                component: './MinerInfo',
              },
              {
                name: 'Expend',
                icon: 'smile',
                path: '/expend',
                component: './Expend',
              },

              {
                name: 'InCome',
                icon: 'smile',
                path: '/income',
                component: './InCome',
              },
              {
                component: './404',
              },
        ],
      },
];
